﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Maintainance/Maintainance.master" AutoEventWireup="true" CodeBehind="Services.aspx.cs" Inherits="OpenPhotoAlbum.Maintainance.Services" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ph1" runat="server">
	<div>
		Add restricted IP address:<br />
		<asp:TextBox ID="tbIpAddress" runat="server" />
		<asp:Button ID="btnSubmit" runat="server" Text="Submit" 
			onclick="btnSubmit_Click" />
	</div>
	<asp:GridView ID="gridView" runat="server" AllowPaging="True" 
		AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="Address" 
		DataSourceID="LinqDataSource1" >
		<Columns>
			<asp:CommandField ShowDeleteButton="True" />
			<asp:BoundField DataField="Address" HeaderText="Address" ReadOnly="True" 
				SortExpression="Address" />
			<asp:BoundField DataField="StartingDate" HeaderText="StartingDate" 
				SortExpression="StartingDate" />
		</Columns>
	</asp:GridView>
	<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
		ContextTypeName="OpenPhotoAlbum.DbAccess.DataClassesUADataContext" 
		TableName="IpAddresses" EnableDelete="True" OrderBy="StartingDate desc">
	</asp:LinqDataSource>
</asp:Content>
